

ac.buff('沉默') {

    --是负面效果
    debuff = true,
    control = true,
    effect_data = {
        ['overhead'] = [[Abilities\Spells\Other\Silence\SilenceTarget.mdl]],
    },
    on_add = function(self)
        self.owner:add_restriction '沉默'
    end,

    on_cover = function(self, new)
        self.source = new.source
        if new.time > self:get_remaining() then
            self:set_remaining(new.time)
        end
        return false
    end,

    on_remove = function(self)
        self.owner:remove_restriction '沉默'
    end,
}
